﻿@using VirtualPress.Infrastructure.Entities.Entity;
@using VirtualPress.Infrastructure.Entities.Enum;
@{
    ViewBag.Title = "BillLog";
    Layout = "/Areas/WorkSpace/Views/Shared/_WorkSpace.cshtml";
}

<div id="content-header">
    <h1>
        缴费通知</h1>
</div>
<div id="breadcrumb">
    <a href="/WorkSpace/member/index" class="tip-bottom"><i class="icon-home"></i>起始页</a> <a href="javascript:"
        class="current">缴费记录</a>
</div>
<div class="container-fluid">
    <div class="row-fluid">
        <div class="span12">
            <div class="widget-box">
                <div class="widget-title">
                    <h5>
                        缴费记录</h5>
                        <div class="buttons" style="margin-right: 15px;">
                    </div>
                </div>
                <div class="widget-content nopadding">
                    <table class="table table-bordered">
                        <thead>
                            <tr style="cursor: pointer;">
                                <th>
                                    
                                </th>
                                <th style="width: 15%">
                                    创建时间
                                </th>
                                <th style="width: 15%">
                                    完成时间
                                </th>
                                <th style="width: 25%">
                                    支付金额
                                </th>
                                <th style="width: 15%">
                                    状态
                                </th>
                            </tr>
                        </thead>
                        <tbody>
                       @{
                           ItemListBox<Reckoning> data = ViewBag.Data;
                           if(data != null && data.Data.Any())
                           {
                            foreach(var item in data.Data)
                            {
                            <tr>
                                <td style="text-align: center">
                                    @item.Message
                                </td>
                                <td style="text-align: center">
                                    @item.CreateTime.ToString("yyyy-MM-dd")
                                </td>
                                <td style="text-align: center">
                                    @item.Message
                                </td>
                                <td style="text-align: center">
                                    人民币: @item.TotalPay <span style="font-size:11px;">[@item.PayType.Mapping()]</span>
                                </td>
                                <td style="text-align: center">
                                    @Html.Raw(item.Status == 0 ? "<span style=\"color:red;\">待缴费</span>" : "<span style=\"color:green;\">缴费成功</span>")
                                </td>
                            </tr>
                            }
                           }
                           }
                        </tbody>
                    </table>
                </div>
                @Html.Raw(data.PageItemSegment)
            </div>
        </div>
    </div>
</div>
@section tail{
    <script type="text/javascript">
        $(function () {
            $('#likpayment').addClass('active open');
        });
    </script>
}

